.class public Lcom/estrongs/android/pop/app/filetransfer/h;
.super Les/s80;
.source "FileTransferTask.java"


# instance fields
.field private D:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation
.end field

.field private E:Ljava/lang/String;

.field private F:Ljava/net/InetAddress;

.field private G:Ljava/lang/String;

.field H:Landroid/app/Activity;

.field I:Lcom/estrongs/fs/f;

.field private J:Ljava/lang/String;

.field K:Ljava/lang/Long;

.field private L:Les/z80;


# direct methods
.method constructor <init>(Landroid/app/Activity;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/app/Activity;",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ")V"
        }
    .end annotation

    .line 1
    invoke-direct {p0}, Les/s80;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/h;->F:Ljava/net/InetAddress;

    const-wide/16 v0, 0x0

    .line 3
    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/h;->K:Ljava/lang/Long;

    .line 4
    new-instance v0, Lcom/estrongs/android/pop/app/filetransfer/h$b;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/filetransfer/h$b;-><init>(Lcom/estrongs/android/pop/app/filetransfer/h;)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/h;->L:Les/z80;

    .line 5
    iput-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/h;->H:Landroid/app/Activity;

    .line 6
    invoke-static {p1}, Lcom/estrongs/fs/f;->a(Landroid/content/Context;)Lcom/estrongs/fs/f;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/h;->I:Lcom/estrongs/fs/f;

    .line 7
    iput-object p2, p0, Lcom/estrongs/android/pop/app/filetransfer/h;->D:Ljava/util/List;

    .line 8
    iput-object p3, p0, Lcom/estrongs/android/pop/app/filetransfer/h;->E:Ljava/lang/String;

    .line 9
    iput-object p4, p0, Lcom/estrongs/android/pop/app/filetransfer/h;->G:Ljava/lang/String;

    .line 10
    iput-object p5, p0, Lcom/estrongs/android/pop/app/filetransfer/h;->J:Ljava/lang/String;

    const/4 p1, 0x0

    .line 11
    iput-boolean p1, p0, Les/s80;->w:Z

    .line 12
    iput-boolean p1, p0, Les/s80;->u:Z

    const/16 p3, 0x15

    .line 13
    iput p3, p0, Les/s80;->s:I

    .line 14
    new-instance p3, Ljava/lang/StringBuilder;

    invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V

    .line 15
    invoke-interface {p2}, Ljava/util/List;->size()I

    move-result p4

    :goto_0
    if-ge p1, p4, :cond_3

    .line 16
    invoke-interface {p2, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p5

    check-cast p5, Lcom/estrongs/fs/g;

    invoke-interface {p5}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object p5

    if-nez p5, :cond_0

    .line 17
    invoke-interface {p2, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p5

    check-cast p5, Lcom/estrongs/fs/g;

    invoke-interface {p5}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object p5

    invoke-static {p5}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p5

    .line 18
    :cond_0
    invoke-interface {p2, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/fs/g;

    const-string v1, "displayname"

    invoke-interface {v0, v1}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 19
    invoke-interface {p2, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p5

    check-cast p5, Lcom/estrongs/fs/g;

    invoke-interface {p5, v1}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p5

    check-cast p5, Ljava/lang/String;

    .line 20
    :cond_1
    invoke-virtual {p3, p5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    add-int/lit8 p5, p1, 0x1

    if-eq p5, p4, :cond_2

    const-string v0, " , "

    .line 21
    invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const/4 v0, 0x4

    if-lt p1, v0, :cond_2

    const-string p1, "..."

    .line 22
    invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_1

    :cond_2
    move p1, p5

    goto :goto_0

    .line 23
    :cond_3
    :goto_1
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    iput-object p2, p1, Les/w80$a;->j:Ljava/lang/String;

    .line 24
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/filetransfer/h;->F()V

    .line 25
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object p2, p0, Lcom/estrongs/android/pop/app/filetransfer/h;->H:Landroid/app/Activity;

    const p3, 0x7f110acc

    invoke-virtual {p2, p3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p2, p0, Lcom/estrongs/android/pop/app/filetransfer/h;->E:Ljava/lang/String;

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1}, Les/s80;->a(Ljava/lang/String;)V

    .line 26
    :try_start_0
    iget-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/h;->E:Ljava/lang/String;

    invoke-static {p1}, Ljava/net/InetAddress;->getByName(Ljava/lang/String;)Ljava/net/InetAddress;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/h;->F:Ljava/net/InetAddress;
    :try_end_0
    .catch Ljava/net/UnknownHostException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_2

    :catch_0
    move-exception p1

    .line 27
    invoke-virtual {p1}, Ljava/net/UnknownHostException;->printStackTrace()V

    :goto_2
    return-void
.end method

.method private F()V
    .locals 8

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/h;->D:Ljava/util/List;

    const/4 v1, 0x0

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/fs/g;

    .line 2
    iget-object v2, p0, Lcom/estrongs/android/pop/app/filetransfer/h;->D:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    const-string v3, ""

    const/4 v4, 0x0

    :goto_0
    const/4 v5, 0x3

    const-string v6, ","

    if-ge v4, v5, :cond_2

    if-ne v4, v2, :cond_0

    goto :goto_2

    .line 3
    :cond_0
    iget-object v5, p0, Lcom/estrongs/android/pop/app/filetransfer/h;->D:Ljava/util/List;

    invoke-interface {v5, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcom/estrongs/fs/g;

    const-string v7, "displayname"

    invoke-interface {v5, v7}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v5

    if-eqz v5, :cond_1

    .line 4
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, p0, Lcom/estrongs/android/pop/app/filetransfer/h;->D:Ljava/util/List;

    invoke-interface {v3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/estrongs/fs/g;

    invoke-interface {v3, v7}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    goto :goto_1

    .line 5
    :cond_1
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, p0, Lcom/estrongs/android/pop/app/filetransfer/h;->D:Ljava/util/List;

    invoke-interface {v3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/estrongs/fs/g;

    invoke-interface {v3}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    :goto_1
    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    .line 6
    :cond_2
    :goto_2
    invoke-virtual {v3, v6}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_3

    .line 7
    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v4

    add-int/lit8 v4, v4, -0x1

    invoke-virtual {v3, v1, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v3

    :cond_3
    const-string v4, "title"

    .line 8
    invoke-virtual {p0, v4, v3}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 9
    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    const-string v3, "items_ori_count"

    invoke-virtual {p0, v3, v2}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 10
    invoke-virtual {p0}, Les/s80;->k()J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    const-string v3, "task_id"

    invoke-virtual {p0, v3, v2}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 11
    iget v2, p0, Les/s80;->s:I

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    const-string v3, "task_type"

    invoke-virtual {p0, v3, v2}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 12
    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    const-string v3, "restartable"

    invoke-virtual {p0, v3, v2}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 13
    iget-object v2, p0, Lcom/estrongs/android/pop/app/filetransfer/h;->D:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    const-string v3, "items_selected_count"

    invoke-virtual {p0, v3, v2}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 14
    iget-object v2, p0, Lcom/estrongs/android/pop/app/filetransfer/h;->D:Ljava/util/List;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/fs/g;

    invoke-interface {v1}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v1

    const-string v2, "source"

    invoke-virtual {p0, v2, v1}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 15
    iget-object v1, p0, Lcom/estrongs/android/pop/app/filetransfer/h;->E:Ljava/lang/String;

    const-string v2, "target"

    invoke-virtual {p0, v2, v1}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 16
    invoke-interface {v0}, Lcom/estrongs/fs/g;->i()Lcom/estrongs/fs/l;

    move-result-object v1

    invoke-virtual {v1}, Lcom/estrongs/fs/l;->b()Z

    move-result v1

    const-string v2, "file_type"

    if-eqz v1, :cond_4

    .line 17
    invoke-interface {v0}, Lcom/estrongs/fs/g;->i()Lcom/estrongs/fs/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/fs/l;->a()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v2, v0}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    goto :goto_3

    .line 18
    :cond_4
    invoke-interface {v0}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/n0;->b(Ljava/lang/String;)I

    move-result v0

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {p0, v2, v0}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 19
    :goto_3
    iget-wide v0, p0, Les/s80;->p:J

    const-wide/16 v2, -0x1

    cmp-long v4, v0, v2

    if-nez v4, :cond_5

    .line 20
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Les/s80;->p:J

    .line 21
    :cond_5
    iget-wide v0, p0, Les/s80;->p:J

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    const-string v1, "start_time"

    invoke-virtual {p0, v1, v0}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    return-void
.end method

.method public static a(Landroid/app/Activity;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/estrongs/android/pop/app/filetransfer/h;
    .locals 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/app/Activity;",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ")",
            "Lcom/estrongs/android/pop/app/filetransfer/h;"
        }
    .end annotation

    .line 11
    new-instance v6, Lcom/estrongs/android/pop/app/filetransfer/h;

    move-object v0, v6

    move-object v1, p0

    move-object v2, p1

    move-object v3, p2

    move-object v4, p3

    move-object v5, p4

    invoke-direct/range {v0 .. v5}, Lcom/estrongs/android/pop/app/filetransfer/h;-><init>(Landroid/app/Activity;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 12
    new-instance p0, Lcom/estrongs/android/pop/app/filetransfer/h$a;

    invoke-direct {p0}, Lcom/estrongs/android/pop/app/filetransfer/h$a;-><init>()V

    invoke-virtual {v6, p0}, Les/s80;->a(Les/z80;)V

    .line 13
    iget-object p0, v6, Lcom/estrongs/android/pop/app/filetransfer/h;->L:Les/z80;

    invoke-virtual {v6, p0}, Les/s80;->a(Les/z80;)V

    .line 14
    invoke-virtual {v6}, Les/s80;->d()V

    return-object v6
.end method


# virtual methods
.method protected C()Ljava/lang/String;
    .locals 2

    .line 1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0}, Les/s80;->g()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, " cancelled."

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public D()Ljava/net/InetAddress;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/h;->F:Ljava/net/InetAddress;

    return-object v0
.end method

.method protected E()Ljava/lang/String;
    .locals 2

    .line 1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0}, Les/s80;->g()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, " successfully."

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method protected a(Les/u80;)Ljava/lang/Object;
    .locals 0

    if-eqz p1, :cond_0

    .line 15
    iget-object p1, p1, Les/u80;->b:Ljava/lang/Object;

    if-eqz p1, :cond_0

    .line 16
    check-cast p1, Les/u80$a;

    iget-object p1, p1, Les/u80$a;->b:Ljava/lang/Object;

    goto :goto_0

    :cond_0
    const/4 p1, -0x1

    .line 17
    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    :goto_0
    return-object p1
.end method

.method public varargs a(I[Ljava/lang/Object;)V
    .locals 6

    const/4 v0, 0x1

    const/4 v1, 0x0

    const/4 v2, 0x2

    if-eq p1, v2, :cond_1

    const/16 v2, 0x9

    if-eq p1, v2, :cond_0

    .line 1
    invoke-super {p0, p1, p2}, Les/s80;->a(I[Ljava/lang/Object;)V

    goto :goto_0

    .line 2
    :cond_0
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    aget-object v1, p2, v1

    check-cast v1, Ljava/lang/Long;

    invoke-virtual {v1}, Ljava/lang/Long;->longValue()J

    move-result-wide v1

    iput-wide v1, p1, Les/w80$a;->g:J

    .line 3
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    aget-object p2, p2, v0

    check-cast p2, Ljava/lang/Long;

    invoke-virtual {p2}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    iput-wide v0, p1, Les/w80$a;->h:J

    goto :goto_0

    .line 4
    :cond_1
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    aget-object v1, p2, v1

    check-cast v1, Ljava/lang/Long;

    invoke-virtual {v1}, Ljava/lang/Long;->longValue()J

    move-result-wide v3

    iput-wide v3, p1, Les/w80$a;->f:J

    .line 5
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    aget-object v0, p2, v0

    check-cast v0, Ljava/lang/String;

    iput-object v0, p1, Les/w80$a;->a:Ljava/lang/String;

    .line 6
    aget-object p2, p2, v2

    check-cast p2, Ljava/lang/Long;

    invoke-virtual {p2}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    iput-wide v0, p1, Les/w80$a;->e:J

    .line 7
    invoke-virtual {p0}, Les/s80;->o()Z

    move-result p1

    if-eqz p1, :cond_2

    .line 8
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide p1

    invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p1

    .line 9
    iget-object p2, p0, Les/s80;->c:Les/w80$a;

    iget-wide v0, p2, Les/w80$a;->f:J

    long-to-float v0, v0

    float-to-double v0, v0

    invoke-virtual {p1}, Ljava/lang/Long;->longValue()J

    move-result-wide v2

    iget-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/h;->K:Ljava/lang/Long;

    invoke-virtual {p1}, Ljava/lang/Long;->longValue()J

    move-result-wide v4

    sub-long/2addr v2, v4

    long-to-double v2, v2

    const-wide v4, 0x408f400000000000L    # 1000.0

    invoke-static {v2, v3}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v2, v4

    invoke-static {v0, v1}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v0, v2

    double-to-int p1, v0

    iput p1, p2, Les/w80$a;->b:I

    .line 10
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    invoke-virtual {p0, p1}, Les/s80;->a(Les/w80$a;)V

    :cond_2
    :goto_0
    return-void
.end method

.method protected b(Les/u80;)Ljava/lang/String;
    .locals 0

    if-eqz p1, :cond_0

    .line 1
    iget-object p1, p1, Les/u80;->b:Ljava/lang/Object;

    if-eqz p1, :cond_0

    .line 2
    check-cast p1, Les/u80$a;

    iget-object p1, p1, Les/u80$a;->a:Ljava/lang/String;

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return-object p1
.end method

.method public y()Z
    .locals 40

    move-object/from16 v1, p0

    .line 1
    iget-object v0, v1, Les/s80;->c:Les/w80$a;

    const-wide/16 v2, 0x0

    iput-wide v2, v0, Les/w80$a;->c:J

    .line 2
    iput-wide v2, v0, Les/w80$a;->d:J

    .line 3
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v5, v1, Lcom/estrongs/android/pop/app/filetransfer/h;->H:Landroid/app/Activity;

    const v6, 0x7f110b55

    invoke-virtual {v5, v6}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v5, v1, Lcom/estrongs/android/pop/app/filetransfer/h;->E:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    iput-object v4, v0, Les/w80$a;->a:Ljava/lang/String;

    .line 4
    iget-object v0, v1, Les/s80;->c:Les/w80$a;

    invoke-virtual {v1, v0}, Les/s80;->a(Les/w80$a;)V

    .line 5
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v4

    .line 6
    new-instance v0, Les/b90;

    iget-object v5, v1, Lcom/estrongs/android/pop/app/filetransfer/h;->D:Ljava/util/List;

    invoke-direct {v0, v5}, Les/b90;-><init>(Ljava/util/List;)V

    move-wide v5, v2

    :cond_0
    :goto_0
    const/4 v7, 0x0

    if-eqz v4, :cond_1

    .line 7
    invoke-virtual {v4}, Les/s80;->z()Z

    move-result v8

    if-eqz v8, :cond_1

    return v7

    .line 8
    :cond_1
    invoke-virtual {v0}, Les/b90;->a()Lcom/estrongs/fs/g;

    move-result-object v8

    const-wide/16 v9, 0x1

    if-eqz v8, :cond_2

    .line 9
    invoke-interface {v8}, Lcom/estrongs/fs/g;->i()Lcom/estrongs/fs/l;

    move-result-object v7

    sget-object v11, Lcom/estrongs/fs/l;->d:Lcom/estrongs/fs/l;

    if-ne v7, v11, :cond_0

    .line 10
    iget-object v7, v1, Les/s80;->c:Les/w80$a;

    iget-wide v11, v7, Les/w80$a;->c:J

    add-long/2addr v11, v9

    iput-wide v11, v7, Les/w80$a;->c:J

    .line 11
    invoke-interface {v8}, Lcom/estrongs/fs/g;->length()J

    move-result-wide v7

    add-long/2addr v5, v7

    goto :goto_0

    .line 12
    :cond_2
    iget-object v0, v1, Les/s80;->c:Les/w80$a;

    iput-wide v5, v0, Les/w80$a;->e:J

    .line 13
    iget-object v0, v1, Lcom/estrongs/android/pop/app/filetransfer/h;->D:Ljava/util/List;

    invoke-interface {v0, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/fs/g;

    const-string v8, "displayname"

    invoke-interface {v0, v8}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_3

    .line 14
    iget-object v0, v1, Les/s80;->c:Les/w80$a;

    iget-object v11, v1, Lcom/estrongs/android/pop/app/filetransfer/h;->D:Ljava/util/List;

    invoke-interface {v11, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Lcom/estrongs/fs/g;

    invoke-interface {v11, v8}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Ljava/lang/String;

    iput-object v11, v0, Les/w80$a;->j:Ljava/lang/String;

    goto :goto_1

    .line 15
    :cond_3
    iget-object v0, v1, Les/s80;->c:Les/w80$a;

    iget-object v11, v1, Lcom/estrongs/android/pop/app/filetransfer/h;->D:Ljava/util/List;

    invoke-interface {v11, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Lcom/estrongs/fs/g;

    invoke-interface {v11}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object v11

    iput-object v11, v0, Les/w80$a;->j:Ljava/lang/String;

    .line 16
    :goto_1
    iget-object v0, v1, Lcom/estrongs/android/pop/app/filetransfer/h;->D:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    const/4 v11, 0x1

    if-le v0, v11, :cond_4

    .line 17
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v12, v1, Les/s80;->c:Les/w80$a;

    iget-object v13, v12, Les/w80$a;->j:Ljava/lang/String;

    invoke-virtual {v0, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v13, "..."

    invoke-virtual {v0, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v12, Les/w80$a;->j:Ljava/lang/String;

    .line 18
    :cond_4
    iget-object v0, v1, Les/s80;->c:Les/w80$a;

    invoke-virtual {v1, v0}, Les/s80;->a(Les/w80$a;)V

    .line 19
    invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    const-string v12, "size"

    invoke-virtual {v1, v12, v0}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    const/16 v12, 0x2710

    .line 20
    :try_start_0
    iget-object v0, v1, Lcom/estrongs/android/pop/app/filetransfer/h;->D:Ljava/util/List;

    invoke-interface {v0, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/fs/g;

    .line 21
    invoke-interface {v0}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/String;->length()I

    invoke-interface {v0}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/String;->length()I

    .line 22
    iget-object v14, v1, Lcom/estrongs/android/pop/app/filetransfer/h;->E:Ljava/lang/String;

    invoke-static {v14}, Ljava/net/InetAddress;->getByName(Ljava/lang/String;)Ljava/net/InetAddress;

    move-result-object v14

    .line 23
    new-instance v15, Ljava/net/Socket;

    invoke-direct {v15}, Ljava/net/Socket;-><init>()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_9

    .line 24
    :try_start_1
    new-instance v2, Ljava/net/InetSocketAddress;

    sget v3, Les/c90;->g:I

    invoke-direct {v2, v14, v3}, Ljava/net/InetSocketAddress;-><init>(Ljava/net/InetAddress;I)V

    invoke-virtual {v15, v2, v12}, Ljava/net/Socket;->connect(Ljava/net/SocketAddress;I)V

    .line 25
    invoke-virtual {v15}, Ljava/net/Socket;->isConnected()Z

    move-result v2

    if-eqz v2, :cond_1d

    .line 26
    new-instance v2, Ljava/io/DataInputStream;

    invoke-virtual {v15}, Ljava/net/Socket;->getInputStream()Ljava/io/InputStream;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V

    .line 27
    new-instance v3, Ljava/io/DataOutputStream;

    invoke-virtual {v15}, Ljava/net/Socket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v14

    invoke-direct {v3, v14}, Ljava/io/DataOutputStream;-><init>(Ljava/io/OutputStream;)V

    .line 28
    invoke-interface {v0, v8}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v14

    if-eqz v14, :cond_5

    .line 29
    invoke-interface {v0, v8}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v14

    check-cast v14, Ljava/lang/String;

    goto :goto_2

    .line 30
    :cond_5
    invoke-interface {v0}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object v14

    .line 31
    :goto_2
    iget-object v9, v1, Lcom/estrongs/android/pop/app/filetransfer/h;->D:Ljava/util/List;

    invoke-interface {v9}, Ljava/util/List;->size()I

    move-result v9
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_8

    const-string v10, "Content-Type: application/file\r\n"

    const-string v12, "\r\n"

    if-le v9, v11, :cond_7

    :try_start_2
    const-string v10, "Content-Type: application/files\r\n"

    :catch_0
    :cond_6
    :goto_3
    const/4 v11, 0x0

    goto/16 :goto_6

    .line 32
    :cond_7
    invoke-static {v0}, Lcom/estrongs/android/util/n0;->c(Lcom/estrongs/fs/g;)Z

    move-result v9
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_8

    if-eqz v9, :cond_a

    .line 33
    :try_start_3
    new-instance v9, Landroid/graphics/BitmapFactory$Options;

    invoke-direct {v9}, Landroid/graphics/BitmapFactory$Options;-><init>()V

    .line 34
    iput-boolean v11, v9, Landroid/graphics/BitmapFactory$Options;->inJustDecodeBounds:Z

    .line 35
    invoke-interface {v0}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v13

    invoke-static {v13, v9}, Landroid/graphics/BitmapFactory;->decodeFile(Ljava/lang/String;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    .line 36
    iget v13, v9, Landroid/graphics/BitmapFactory$Options;->outWidth:I

    .line 37
    iget v11, v9, Landroid/graphics/BitmapFactory$Options;->outHeight:I

    const/16 v7, 0x40

    .line 38
    iput v7, v9, Landroid/graphics/BitmapFactory$Options;->outWidth:I

    mul-int v11, v11, v13

    .line 39
    div-int/2addr v11, v13

    iput v11, v9, Landroid/graphics/BitmapFactory$Options;->outHeight:I

    const/4 v11, 0x0

    .line 40
    iput-boolean v11, v9, Landroid/graphics/BitmapFactory$Options;->inJustDecodeBounds:Z

    .line 41
    sget-boolean v11, Lcom/estrongs/android/pop/j;->w:Z

    if-nez v11, :cond_8

    const/4 v11, 0x1

    goto :goto_4

    :cond_8
    const/4 v11, 0x0

    :goto_4
    iput-boolean v11, v9, Landroid/graphics/BitmapFactory$Options;->inPurgeable:Z

    const/4 v11, 0x1

    .line 42
    iput-boolean v11, v9, Landroid/graphics/BitmapFactory$Options;->inInputShareable:Z

    .line 43
    div-int/2addr v13, v7

    iput v13, v9, Landroid/graphics/BitmapFactory$Options;->inSampleSize:I

    .line 44
    invoke-interface {v0}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, v9}, Landroid/graphics/BitmapFactory;->decodeFile(Ljava/lang/String;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    move-result-object v20

    .line 45
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "Content-Type: application/file\r\nAppend-Data: Thumbnail-Image\r\nImage-Width: "

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 46
    invoke-virtual/range {v20 .. v20}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v7

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v7, "\r\nImage-Height: "

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 47
    invoke-virtual/range {v20 .. v20}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v7

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 48
    invoke-virtual/range {v20 .. v20}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v7

    invoke-virtual/range {v20 .. v20}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v9

    mul-int v7, v7, v9

    new-array v9, v7, [I

    const/16 v22, 0x0

    .line 49
    invoke-virtual/range {v20 .. v20}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v23

    const/16 v24, 0x0

    const/16 v25, 0x0

    .line 50
    invoke-virtual/range {v20 .. v20}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v26

    invoke-virtual/range {v20 .. v20}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v27

    move-object/from16 v21, v9

    .line 51
    invoke-virtual/range {v20 .. v27}, Landroid/graphics/Bitmap;->getPixels([IIIIIII)V

    mul-int/lit8 v11, v7, 0x4

    .line 52
    new-array v11, v11, [B
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0

    const/4 v13, 0x0

    :goto_5
    if-ge v13, v7, :cond_9

    mul-int/lit8 v20, v13, 0x4

    .line 53
    :try_start_4
    aget v21, v9, v13

    move-object/from16 v22, v0

    shr-int/lit8 v0, v21, 0x18

    int-to-byte v0, v0

    aput-byte v0, v11, v20

    add-int/lit8 v0, v20, 0x1

    .line 54
    aget v21, v9, v13

    move/from16 v23, v7

    shr-int/lit8 v7, v21, 0x10

    int-to-byte v7, v7

    aput-byte v7, v11, v0

    add-int/lit8 v0, v20, 0x2

    .line 55
    aget v7, v9, v13

    shr-int/lit8 v7, v7, 0x8

    int-to-byte v7, v7

    aput-byte v7, v11, v0

    add-int/lit8 v20, v20, 0x3

    .line 56
    aget v0, v9, v13

    const/4 v7, 0x0

    shr-int/2addr v0, v7

    int-to-byte v0, v0

    aput-byte v0, v11, v20
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_1

    add-int/lit8 v13, v13, 0x1

    move-object/from16 v0, v22

    move/from16 v7, v23

    goto :goto_5

    :cond_9
    move-object/from16 v22, v0

    move-object/from16 v10, v22

    goto :goto_6

    .line 57
    :cond_a
    :try_start_5
    invoke-interface {v0}, Lcom/estrongs/fs/g;->i()Lcom/estrongs/fs/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/fs/l;->b()Z

    move-result v0

    if-eqz v0, :cond_6

    const-string v10, "Content-Type: application/folder\r\n"

    goto/16 :goto_3

    .line 58
    :catch_1
    :goto_6
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "MYPOST /"

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v7, " HTTP/1.1\r\nConnection: Keep-Alive\r\n"

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v7, "Files-Number: "

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v7, v1, Lcom/estrongs/android/pop/app/filetransfer/h;->D:Ljava/util/List;

    .line 59
    invoke-interface {v7}, Ljava/util/List;->size()I

    move-result v7

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v7, "\r\nItems-Number: "

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v7, v1, Les/s80;->c:Les/w80$a;

    iget-wide v9, v7, Les/w80$a;->c:J

    invoke-virtual {v0, v9, v10}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v7, "\r\nContent-Length: "

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v5, v6}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v7, "\r\nUser-Agent: Dalvik\r\nHost: localhost\r\nsender-name: "

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v7, v1, Lcom/estrongs/android/pop/app/filetransfer/h;->G:Ljava/lang/String;

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v7, "\r\n\r\n"

    invoke-virtual {v0, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v7, "utf-8"

    .line 60
    invoke-virtual {v0, v7}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v0

    invoke-virtual {v3, v0}, Ljava/io/DataOutputStream;->write([B)V

    if-eqz v11, :cond_b

    .line 61
    invoke-virtual {v3, v11}, Ljava/io/DataOutputStream;->write([B)V

    .line 62
    :cond_b
    invoke-virtual {v2}, Ljava/io/DataInputStream;->available()I

    move-result v0

    if-nez v0, :cond_c

    const-wide/16 v9, 0xc8

    .line 63
    invoke-static {v9, v10}, Ljava/lang/Thread;->sleep(J)V

    if-eqz v4, :cond_b

    .line 64
    invoke-virtual {v4}, Les/s80;->z()Z

    move-result v0

    if-eqz v0, :cond_b

    .line 65
    invoke-virtual {v15}, Ljava/net/Socket;->close()V

    const/4 v2, 0x0

    return v2

    .line 66
    :cond_c
    new-instance v0, Ljava/util/Properties;

    invoke-direct {v0}, Ljava/util/Properties;-><init>()V
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_8

    const-string v7, ""

    move-object v9, v7

    .line 67
    :goto_7
    :try_start_6
    invoke-virtual {v2}, Ljava/io/DataInputStream;->readLine()Ljava/lang/String;

    move-result-object v10

    .line 68
    invoke-virtual {v10}, Ljava/lang/String;->length()I

    move-result v11

    if-nez v11, :cond_1b

    const-string v9, "content-length"

    .line 69
    invoke-virtual {v0, v9}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0

    new-array v0, v0, [B

    .line 70
    invoke-virtual {v2, v0}, Ljava/io/DataInputStream;->read([B)I

    .line 71
    new-instance v2, Ljava/lang/String;

    invoke-direct {v2, v0}, Ljava/lang/String;-><init>([B)V

    const-string v0, "OK"

    .line 72
    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_d

    .line 73
    new-instance v0, Les/u80$a;

    iget-object v2, v1, Lcom/estrongs/android/pop/app/filetransfer/h;->H:Landroid/app/Activity;

    const v3, 0x7f110927

    .line 74
    invoke-virtual {v2, v3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    invoke-direct {v0, v2, v3}, Les/u80$a;-><init>(Ljava/lang/String;Ljava/lang/Exception;)V

    const/16 v2, 0x2710

    .line 75
    invoke-virtual {v1, v2, v0}, Les/s80;->b(ILjava/lang/Object;)V

    .line 76
    invoke-virtual {v15}, Ljava/net/Socket;->close()V
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_8

    const/4 v2, 0x0

    return v2

    .line 77
    :cond_d
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v9

    invoke-static {v9, v10}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    iput-object v0, v1, Lcom/estrongs/android/pop/app/filetransfer/h;->K:Ljava/lang/Long;

    const/4 v0, 0x0

    const/4 v2, 0x0

    const-wide/16 v9, 0x0

    .line 78
    :goto_8
    iget-object v11, v1, Lcom/estrongs/android/pop/app/filetransfer/h;->D:Ljava/util/List;

    invoke-interface {v11}, Ljava/util/List;->size()I

    move-result v11

    if-ge v2, v11, :cond_17

    .line 79
    iget-object v11, v1, Lcom/estrongs/android/pop/app/filetransfer/h;->D:Ljava/util/List;

    invoke-interface {v11, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Lcom/estrongs/fs/g;

    .line 80
    new-instance v13, Les/b90;

    invoke-direct {v13, v11}, Les/b90;-><init>(Lcom/estrongs/fs/g;)V

    .line 81
    invoke-interface {v11}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/String;->length()I

    move-result v14

    invoke-interface {v11}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/String;->length()I

    move-result v20

    sub-int v14, v14, v20

    .line 82
    :goto_9
    :try_start_7
    invoke-virtual {v13}, Les/b90;->a()Lcom/estrongs/fs/g;

    move-result-object v20
    :try_end_7
    .catch Ljava/io/IOException; {:try_start_7 .. :try_end_7} :catch_6

    if-nez v20, :cond_e

    move-object/from16 v28, v7

    move-object/from16 v30, v12

    const-wide/16 v16, 0x1

    goto/16 :goto_11

    :cond_e
    move-wide/from16 v21, v9

    .line 83
    :try_start_8
    invoke-interface/range {v20 .. v20}, Lcom/estrongs/fs/g;->length()J

    move-result-wide v9

    .line 84
    invoke-interface {v11, v8}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v23

    if-eqz v23, :cond_f

    move/from16 v23, v0

    .line 85
    invoke-interface/range {v20 .. v20}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v0

    move-object/from16 v24, v13

    invoke-interface {v11}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v0, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_10

    .line 86
    invoke-interface/range {v20 .. v20}, Lcom/estrongs/fs/g;->i()Lcom/estrongs/fs/l;

    move-result-object v0

    sget-object v13, Lcom/estrongs/fs/l;->d:Lcom/estrongs/fs/l;

    if-ne v0, v13, :cond_10

    .line 87
    invoke-interface {v11, v8}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 88
    invoke-virtual {v0}, Ljava/lang/String;->getBytes()[B

    move-result-object v13

    invoke-virtual {v3, v13}, Ljava/io/DataOutputStream;->write([B)V

    goto :goto_a

    :cond_f
    move/from16 v23, v0

    move-object/from16 v24, v13

    .line 89
    :cond_10
    invoke-interface/range {v20 .. v20}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v0

    .line 90
    invoke-virtual {v0, v14}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/String;->getBytes()[B

    move-result-object v13

    invoke-virtual {v3, v13}, Ljava/io/DataOutputStream;->write([B)V

    .line 91
    :goto_a
    invoke-virtual {v12}, Ljava/lang/String;->getBytes()[B

    move-result-object v13

    invoke-virtual {v3, v13}, Ljava/io/DataOutputStream;->write([B)V

    .line 92
    invoke-interface/range {v20 .. v20}, Lcom/estrongs/fs/g;->i()Lcom/estrongs/fs/l;

    move-result-object v13

    move/from16 v25, v14

    sget-object v14, Lcom/estrongs/fs/l;->c:Lcom/estrongs/fs/l;

    if-ne v13, v14, :cond_11

    const-string v0, "folder\r\n"

    .line 93
    invoke-virtual {v0}, Ljava/lang/String;->getBytes()[B

    move-result-object v0

    invoke-virtual {v3, v0}, Ljava/io/DataOutputStream;->write([B)V

    .line 94
    invoke-virtual {v3}, Ljava/io/DataOutputStream;->flush()V

    move-wide/from16 v9, v21

    move/from16 v0, v23

    move-object/from16 v13, v24

    move/from16 v14, v25

    goto :goto_9

    :cond_11
    const-string v13, "file\r\n"

    .line 95
    invoke-virtual {v13}, Ljava/lang/String;->getBytes()[B

    move-result-object v13

    invoke-virtual {v3, v13}, Ljava/io/DataOutputStream;->write([B)V

    .line 96
    new-instance v13, Ljava/lang/StringBuilder;

    invoke-direct {v13}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v13, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v13, v9, v10}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v13, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/String;->getBytes()[B

    move-result-object v13

    invoke-virtual {v3, v13}, Ljava/io/DataOutputStream;->write([B)V

    .line 97
    invoke-virtual {v3}, Ljava/io/DataOutputStream;->flush()V
    :try_end_8
    .catch Ljava/io/IOException; {:try_start_8 .. :try_end_8} :catch_5

    const/16 v13, 0x4000

    new-array v13, v13, [B

    move-object/from16 v28, v7

    const/4 v14, 0x0

    const-wide/16 v26, 0x0

    :goto_b
    if-eqz v4, :cond_12

    .line 98
    invoke-virtual {v4}, Les/s80;->z()Z

    move-result v29

    if-eqz v29, :cond_12

    move-object/from16 v30, v12

    move-wide/from16 v9, v21

    const/4 v0, 0x2

    goto/16 :goto_e

    :cond_12
    cmp-long v29, v26, v9

    if-ltz v29, :cond_13

    :try_start_9
    const-string v0, "File end\r\n"

    .line 99
    invoke-virtual {v0}, Ljava/lang/String;->getBytes()[B

    move-result-object v0

    invoke-virtual {v3, v0}, Ljava/io/DataOutputStream;->write([B)V

    .line 100
    invoke-virtual {v3}, Ljava/io/DataOutputStream;->flush()V

    move-object/from16 v30, v12

    move-wide/from16 v9, v21

    move/from16 v0, v23

    goto :goto_e

    :catch_2
    move-exception v0

    move-object/from16 v30, v12

    goto :goto_d

    :cond_13
    if-nez v14, :cond_14

    .line 101
    iget-object v7, v1, Lcom/estrongs/android/pop/app/filetransfer/h;->I:Lcom/estrongs/fs/f;
    :try_end_9
    .catch Ljava/lang/Exception; {:try_start_9 .. :try_end_9} :catch_2

    move-object/from16 v30, v12

    :try_start_a
    invoke-interface/range {v20 .. v20}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v7, v12}, Lcom/estrongs/fs/f;->e(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v7

    move-object v14, v7

    goto :goto_c

    :cond_14
    move-object/from16 v30, v12

    .line 102
    :goto_c
    invoke-virtual {v14, v13}, Ljava/io/InputStream;->read([B)I

    move-result v7

    const/4 v12, 0x0

    .line 103
    invoke-virtual {v3, v13, v12, v7}, Ljava/io/DataOutputStream;->write([BII)V

    .line 104
    invoke-virtual {v3}, Ljava/io/DataOutputStream;->flush()V

    move-object/from16 v31, v13

    int-to-long v12, v7

    add-long v26, v26, v12

    add-long v21, v21, v12

    const/16 v7, 0x9

    const/4 v12, 0x2

    new-array v13, v12, [Ljava/lang/Object;

    .line 105
    invoke-static {v9, v10}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v12

    const/16 v19, 0x0

    aput-object v12, v13, v19

    invoke-static/range {v26 .. v27}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v12

    const/16 v18, 0x1

    aput-object v12, v13, v18

    invoke-virtual {v4, v7, v13}, Les/s80;->b(I[Ljava/lang/Object;)V

    const/4 v7, 0x3

    new-array v7, v7, [Ljava/lang/Object;

    .line 106
    invoke-static/range {v21 .. v22}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v12

    const/4 v13, 0x0

    aput-object v12, v7, v13

    aput-object v0, v7, v18

    .line 107
    invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v12

    const/4 v13, 0x2

    aput-object v12, v7, v13

    .line 108
    invoke-virtual {v4, v13, v7}, Les/s80;->b(I[Ljava/lang/Object;)V
    :try_end_a
    .catch Ljava/lang/Exception; {:try_start_a .. :try_end_a} :catch_3

    move-object/from16 v12, v30

    move-object/from16 v13, v31

    goto/16 :goto_b

    :catch_3
    move-exception v0

    .line 109
    :goto_d
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    move-wide/from16 v9, v21

    const/4 v0, 0x1

    .line 110
    :goto_e
    iget-object v7, v1, Les/s80;->c:Les/w80$a;

    iget-wide v12, v7, Les/w80$a;->d:J

    const-wide/16 v16, 0x1

    add-long v12, v12, v16

    iput-wide v12, v7, Les/w80$a;->d:J

    .line 111
    :try_start_b
    invoke-virtual {v14}, Ljava/io/InputStream;->close()V
    :try_end_b
    .catch Ljava/lang/Exception; {:try_start_b .. :try_end_b} :catch_4

    goto :goto_f

    :catch_4
    nop

    :goto_f
    if-eqz v0, :cond_15

    goto :goto_11

    :cond_15
    move-object/from16 v13, v24

    move/from16 v14, v25

    move-object/from16 v7, v28

    move-object/from16 v12, v30

    goto/16 :goto_9

    :catch_5
    move-object/from16 v28, v7

    goto :goto_10

    :catch_6
    move-object/from16 v28, v7

    move-wide/from16 v21, v9

    :goto_10
    move-object/from16 v30, v12

    const-wide/16 v16, 0x1

    move-wide/from16 v9, v21

    const/4 v0, 0x1

    :goto_11
    if-eqz v0, :cond_16

    goto :goto_12

    .line 112
    :cond_16
    invoke-interface {v11, v8}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v7

    move-object/from16 v39, v7

    check-cast v39, Ljava/lang/String;

    .line 113
    invoke-interface {v11}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v7

    .line 114
    invoke-static {}, Les/ul;->e()Les/ul;

    move-result-object v11

    invoke-virtual {v11, v7}, Les/ul;->a(Ljava/lang/String;)I

    move-result v33

    .line 115
    invoke-static {}, Les/ul;->e()Les/ul;

    move-result-object v31

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v34

    iget-object v11, v1, Lcom/estrongs/android/pop/app/filetransfer/h;->J:Ljava/lang/String;

    const/16 v37, 0x0

    sget-object v38, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;->S:Ljava/lang/String;

    move-object/from16 v32, v7

    move-object/from16 v36, v11

    invoke-virtual/range {v31 .. v39}, Les/ul;->a(Ljava/lang/String;IJLjava/lang/String;ILjava/lang/String;Ljava/lang/String;)V

    add-int/lit8 v2, v2, 0x1

    move-object/from16 v7, v28

    move-object/from16 v12, v30

    goto/16 :goto_8

    :cond_17
    :goto_12
    move v11, v0

    if-nez v11, :cond_18

    :try_start_c
    const-string v0, "OVER\r\n"

    .line 116
    invoke-virtual {v0}, Ljava/lang/String;->getBytes()[B

    move-result-object v0

    invoke-virtual {v3, v0}, Ljava/io/DataOutputStream;->write([B)V

    .line 117
    invoke-virtual {v3}, Ljava/io/DataOutputStream;->flush()V

    .line 118
    :cond_18
    invoke-virtual {v15}, Ljava/net/Socket;->close()V
    :try_end_c
    .catch Ljava/lang/Exception; {:try_start_c .. :try_end_c} :catch_7

    const/4 v7, 0x1

    goto :goto_13

    :catch_7
    const/4 v7, 0x1

    const/4 v11, 0x1

    :goto_13
    if-ne v11, v7, :cond_19

    .line 119
    new-instance v0, Les/u80$a;

    iget-object v2, v1, Lcom/estrongs/android/pop/app/filetransfer/h;->H:Landroid/app/Activity;

    const v3, 0x7f110acb

    .line 120
    invoke-virtual {v2, v3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    const/4 v12, 0x0

    invoke-direct {v0, v2, v12}, Les/u80$a;-><init>(Ljava/lang/String;Ljava/lang/Exception;)V

    const/16 v2, 0x2710

    .line 121
    invoke-virtual {v1, v2, v0}, Les/s80;->b(ILjava/lang/Object;)V

    :cond_19
    if-nez v11, :cond_1a

    return v7

    :cond_1a
    const/4 v2, 0x0

    return v2

    :cond_1b
    move-object/from16 v28, v7

    move-object/from16 v30, v12

    const/4 v7, 0x1

    const/4 v12, 0x0

    const-wide/16 v16, 0x1

    .line 122
    :try_start_d
    new-instance v11, Ljava/lang/StringBuilder;

    invoke-direct {v11}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v11, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v11, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v9, "\r\n\'"

    invoke-virtual {v11, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    const/16 v11, 0x3a

    .line 123
    invoke-virtual {v10, v11}, Ljava/lang/String;->indexOf(I)I

    move-result v11

    if-ltz v11, :cond_1c

    const/4 v13, 0x0

    .line 124
    invoke-virtual {v10, v13, v11}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v13

    add-int/lit8 v11, v11, 0x1

    invoke-virtual {v10, v11}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v0, v13, v10}, Ljava/util/Properties;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_1c
    move-object/from16 v7, v28

    move-object/from16 v12, v30

    goto/16 :goto_7

    .line 125
    :cond_1d
    new-instance v0, Ljava/lang/Exception;

    const-string v2, "connect timeout!"

    invoke-direct {v0, v2}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_d
    .catch Ljava/lang/Exception; {:try_start_d .. :try_end_d} :catch_8

    :catch_8
    move-exception v0

    move-object v13, v15

    goto :goto_14

    :catch_9
    move-exception v0

    const/4 v12, 0x0

    move-object v13, v12

    .line 126
    :goto_14
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 127
    new-instance v2, Les/u80$a;

    iget-object v3, v1, Lcom/estrongs/android/pop/app/filetransfer/h;->H:Landroid/app/Activity;

    const v4, 0x7f1102a4

    .line 128
    invoke-virtual {v3, v4}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3, v0}, Les/u80$a;-><init>(Ljava/lang/String;Ljava/lang/Exception;)V

    const/16 v3, 0x2710

    .line 129
    invoke-virtual {v1, v3, v2}, Les/s80;->b(ILjava/lang/Object;)V

    .line 130
    :try_start_e
    invoke-virtual {v13}, Ljava/net/Socket;->close()V
    :try_end_e
    .catch Ljava/lang/Exception; {:try_start_e .. :try_end_e} :catch_a

    :catch_a
    const/4 v2, 0x0

    return v2
.end method
